-------------------------------------------------------------------------------
-- RTSAI - Real-Time Strategy engine for AI research
-- Copyright(C) 2006 DIMAp-UFRN, licensed under LGPL
--
-- RTSAI state machine for the attackers in the capture-the-flag example
-------------------------------------------------------------------------------

State {
    -- STATE ATTRIBUTES -------------------------------------------------------
    name = "attacking",

    -- STATE FUNCTIONS --------------------------------------------------------
    act = function ( self )
        local seeker_unit = game.players.seeker:get_unit(0)
        local position = seeker_unit:position()
        action.move.steer = self.unit:steerForSeek ( position )
        return action.move
    end
}
